home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / src / lib / include / ds5000.md / RCS / alloca.h,v < prev    next >
Encoding:
Text File  |  1989-11-12  |  1.5 KB  |  74 lines

  1. head     1.2;
  2. branch   ;
  3. access   ;
  4. symbols  ;
  5. locks    ; strict;
  6. comment  @ * @;
  7.  
  8.  
  9. 1.2
  10. date     89.11.12.01.32.27;  author rab;  state Exp;
  11. branches ;
  12. next     1.1;
  13.  
  14. 1.1
  15. date     89.11.03.11.41.09;  author rab;  state Exp;
  16. branches ;
  17. next     ;
  18.  
  19.  
  20. desc
  21. @@
  22.  
  23.  
  24. 1.2
  25. log
  26. @Use _builtin_alloca if using gcc.
  27. @
  28. text
  29. @/*
  30.  * alloca.h --
  31.  *
  32.  *    Declarations of alloca() for the ds3100.  Since the ds3100 has
  33.  *      a normal stack alloca is just a normal procedure.  For other
  34.  *      machines such as the sparc it has to be a fancy builtin macro.
  35.  *
  36.  * Copyright 1989 Regents of the University of California
  37.  * Permission to use, copy, modify, and distribute this
  38.  * software and its documentation for any purpose and without
  39.  * fee is hereby granted, provided that the above copyright
  40.  * notice appear in all copies.  The University of California
  41.  * makes no representations about the suitability of this
  42.  * software for any purpose.  It is provided "as is" without
  43.  * express or implied warranty.
  44.  *
  45.  * $Header: /sprite/src/lib/include/ds3100.md/RCS/alloca.h,v 1.1 89/11/03 11:41:09 rab Exp Locker: rab $ SPRITE (Berkeley)
  46.  */
  47.  
  48. #ifndef _ALLOCA_H
  49. #define _ALLOCA_H
  50.  
  51. /* If compiled with GNU C, use the built-in alloca */
  52. #ifdef __GNUC__
  53. #define alloca __builtin_alloca
  54. #else
  55. extern char *alloca();
  56. #endif
  57.  
  58. #endif /* _ALLOCA_H */
  59.  
  60. @
  61.  
  62.  
  63. 1.1
  64. log
  65. @Initial revision
  66. @
  67. text
  68. @d17 1
  69. a17 1
  70.  * $Header: /sprite/src/lib/include/sun3.md/RCS/alloca.h,v 1.1 89/07/21 14:44:23 rab Exp $ SPRITE (Berkeley)
  71. d23 4
  72. d28 1
  73. @
  74.